package com.yiyahui.project.erp.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yiyahui.framework.aspectj.lang.annotation.Excel;
import com.yiyahui.framework.web.domain.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 操作日志对象 yiya_operation_log
 * 
 * @author yiyahui
 * @date 2020-05-25
 */

@ApiModel(value="操作日志对象")
public class YiyaOperationLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增ID */
    private Long id;

    /** 日志类型 */
    @ApiModelProperty(value="日志类型")
    @Excel(name = "日志类型")
    private String type;

    /** 操作对象id */
    @ApiModelProperty(value="操作对象id")
    @Excel(name = "操作对象id")
    private Long operaTargetId;

    /** 操作对象名称 */
    @ApiModelProperty(value="操作对象名称")
    @Excel(name = "操作对象名称")
    private String operaTargetName;

    /** 操作文字 */
    @ApiModelProperty(value="操作文字")
    @Excel(name = "操作文字")
    private String operaText;

    /** 操作json */
    @ApiModelProperty(value="操作json")
    @Excel(name = "操作json")
    private String operaRemark;

    /** 操作人ID */
    @ApiModelProperty(value="操作人ID")
    @Excel(name = "操作人ID")
    private Long operaUserId;

    /** 操作人姓名 */
    @ApiModelProperty(value="操作人姓名")
    @Excel(name = "操作人姓名")
    private String operaUserName;

    /** 操作时间 */
    @ApiModelProperty(value="操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date operaTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setOperaTargetId(Long operaTargetId) 
    {
        this.operaTargetId = operaTargetId;
    }

    public Long getOperaTargetId() 
    {
        return operaTargetId;
    }
    public void setOperaTargetName(String operaTargetName) 
    {
        this.operaTargetName = operaTargetName;
    }

    public String getOperaTargetName() 
    {
        return operaTargetName;
    }
    public void setOperaText(String operaText) 
    {
        this.operaText = operaText;
    }

    public String getOperaText() 
    {
        return operaText;
    }
    public void setOperaRemark(String operaRemark) 
    {
        this.operaRemark = operaRemark;
    }

    public String getOperaRemark() 
    {
        return operaRemark;
    }
    public void setOperaUserId(Long operaUserId) 
    {
        this.operaUserId = operaUserId;
    }

    public Long getOperaUserId() 
    {
        return operaUserId;
    }
    public void setOperaUserName(String operaUserName) 
    {
        this.operaUserName = operaUserName;
    }

    public String getOperaUserName() 
    {
        return operaUserName;
    }
    public void setOperaTime(Date operaTime) 
    {
        this.operaTime = operaTime;
    }

    public Date getOperaTime() 
    {
        return operaTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("operaTargetId", getOperaTargetId())
            .append("operaTargetName", getOperaTargetName())
            .append("operaText", getOperaText())
            .append("operaRemark", getOperaRemark())
            .append("operaUserId", getOperaUserId())
            .append("operaUserName", getOperaUserName())
            .append("operaTime", getOperaTime())
            .toString();
    }
}
